package com.collaboration.electron.services;

import com.collaboration.electron.dao.DetailedCompositionRepository;
import com.collaboration.electron.entities.DetailedComposition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author pinzi
 * @param
 * @return 无
 */

@Service
public class DetailedCompositionService {

    @Autowired
    DetailedCompositionRepository detailedCompositionRepository;

    public List<DetailedComposition> getAll(){

        return detailedCompositionRepository.findAll();
    }

    public DetailedComposition save(DetailedComposition detailedComposition){

        return detailedCompositionRepository.save(detailedComposition);
    }

}
